import { type Meta, type StoryObj } from '@storybook/react'

import { Separator } from '.'

const meta: Meta<typeof Separator> = {
  component: Separator,
  render: (args) => (
    <div>
      <div className='space-y-1'>
        <h4 className='text-sm font-medium leading-none'>Radix Primitives</h4>
        <p className='text-sm text-muted-foreground'>
          An open-source UI component library.
        </p>
      </div>
      <Separator {...args} className='my-4' />
      <div className='flex h-5 items-center space-x-4 text-sm'>
        <div>Blog</div>
        <Separator orientation='vertical' />
        <div>Docs</div>
        <Separator orientation='vertical' />
        <div>Source</div>
      </div>
    </div>
  ),
}

export default meta

type Story = StoryObj<typeof Separator>

export const Default: Story = {}
